package com.xbx.admin.config.feignform;

import feign.codec.Encoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 类备注：feignform上传文件支持
 *
 * @author hufeng
 * @version 1.0
 * @date 2018-10-03 13:11
 * @desc
 * @since 1.8
 */

@Configuration
public class MultipartSupportConfig {

    @Bean
    public Encoder feignFormEncoder() {
        return new FeignSpringFormEncoder();
    }
}
